package com.bschlearn.group.service.groupservice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bschlearn.group.dao.GroupInfoMapper;
import com.bschlearn.group.message.BaseRsp;
import com.bschlearn.group.message.group.GroupReq;
import com.bschlearn.group.service.BaseService;
/**
 * 
 * @ClassName: GetGroupListService 
 * @Description: TODO(获取所有组名) 
 * @author dcc
 * @date 2019年10月31日 下午3:15:16 
 *
 */
@Service
public class GetGroupNameByIdService extends BaseService<GroupReq, BaseRsp> {

	@Autowired
	private GroupInfoMapper groupMapper;

	@Override
	protected BaseRsp subService(GroupReq req) throws Exception {
		String name = groupMapper.getNameById(req.getId());
		
		return BaseRsp.ok(name);
	}
	


}
